/*******************************************************************************
 * @(#)AliPayRefundRequest.java 2020年05月29日 12:26
 * Copyright 2020 supay.org.cn. All rights reserved.
 *******************************************************************************/
package cn.org.supay.core.channel.alipay.data;

import cn.org.supay.core.channel.aggregate.data.AggregateRequestConvert;
import cn.org.supay.core.channel.aggregate.data.SupayBaseRequest;
import cn.org.supay.core.channel.aggregate.data.SupayPagePayRequest;
import cn.org.supay.core.channel.aggregate.data.SupayPayQueryRequest;
import cn.org.supay.core.channel.data.Request;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * <b>Application name：</b> AliPayRefundRequest.java <br>
 * <b>Application describing： </b> <br>
 * <b>Copyright：</b> Copyright &copy; 2020 supay.org.cn/ 版权所有。<br>
 * <b>Company：</b> supay.org.cn/ <br>
 * <b>@Date：</b> 2020年05月29日 12:26 <br>
 * <b>@author：</b> <a href="mailto:deific@126.com"> deific </a> <br>
 * <b>@version：</b>V1.0.0 <br>
 */
@Data
@SuperBuilder
@NoArgsConstructor
public class AliPayQueryRequest implements Request, AggregateRequestConvert {
    protected String outTradeNo;

    @Override
    public AliPayQueryRequest convertRequest(SupayBaseRequest request) {
        SupayPayQueryRequest queryRequest = (SupayPayQueryRequest) request;
        this.setOutTradeNo(queryRequest.getOutTradeNo());
        return this;
    }

    @Override
    public Class getRespClass() {
        return AliPayQueryResponse.class;
    }
}